package com.itheima.mapper;

import com.itheima.domain.pojo.OperateLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface LogMapper {

    @Select( "select o.*,e.name as operateEmpName from operate_log o left join emp e on e.id=o.operate_emp_id  " )
    List<OperateLog> lists();
}
